package com.cyw.note.manage.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cyw.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 文章类型对象 t_type
 *
 * @author 二叔
 * @date 2022-08-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_type")
public class Type extends BaseEntity {

    private static final long serialVersionUID=1L;

    /**
     * 分类id
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 分类名称
     */
    private String name;

    @TableField(exist = false) //查询时过滤非数据库字段
    private Integer countType;

}
